function [ y ] = logistic( z )

y = 1 ./ (1 + exp(-z));

end